'use strict';

module.exports = appInfo => {
    const config = exports = {};

    // use for cookie sign key, should change to your own and keep security
    config.keys = appInfo.name + '_123';
    config.view = {
        defaultViewEngine: 'nunjucks',
        mapping: {
            '.html': 'nunjucks',
        },
    };
    config.news = {
        port1: '9082', //端口
        serverUrl: 'http://192.168.1.109', //接口公共部分，通过this.config.news访问
    };
    config.security = {
        csrf: {
            enable: false,
        },
    };
    config.httpclient = {
        request: {
            // Ĭ�� request ��ʱʱ��
            timeout: 30 * 1000,
        },
    };

    // add your config here
    config.middleware = [];

    return config;
};